++ include /home/wntime/WorkSpace.Temp/bash-toolbox/lib/cli
++ : /home/wntime/WorkSpace.Temp/bash-toolbox/lib/cli
++ test -d /home/wntime/WorkSpace.Temp/bash-toolbox/lib/cli

++ source bake.sh
+++ task_names=()
+++ declare -a task_names
+++ task_descriptions=()
+++ declare -a task_descriptions
+++ declare task_return=0
+++ task_errors=()
+++ declare -a task_errors
+++ declare -x 'task_file=[Bb]akefile'
+++ alias task=function
+++ alias 'noerrors=test ! "${task_errors[*]}"'
+++ alias 'timestamp=command date +%F\ %T.%N\ %z'
+++ alias 'file_modify=command stat -c %y'
+++ alias 'file_change=command stat -c %z'
+++ include /home/wntime/WorkSpace.Temp/bash-toolbox/tasks
+++ : /home/wntime/WorkSpace.Temp/bash-toolbox/tasks
+++ test -d /home/wntime/WorkSpace.Temp/bash-toolbox/tasks
+++ PATH=/home/wntime/WorkSpace.Temp/bash-toolbox/lib:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/wntime/.local/bin:/home/wntime/bin:/home/wntime/WorkSpace.Temp/bash-toolbox/lib/cli:/home/wntime/WorkSpace.Temp/bash-toolbox/tasks
+++ PATH=/home/wntime/WorkSpace.Temp/bash-toolbox/lib:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/wntime/.local/bin:/home/wntime/bin:/home/wntime/WorkSpace.Temp/bash-toolbox/lib/cli:/home/wntime/WorkSpace.Temp/bash-toolbox/tasks
++ source content.sh
+++ alias 'usage=comments --usage ${BASH_SOURCE}'
+++ alias 'document=comments --markdown ${BASH_SOURCE}'
++ source status.sh
+++ source messages.sh
++++ COLUMNS=80
++++ COLUMNS_INFO=77
++++ COLUMNS_ERROR=77
++++ COLUMNS_WARN=77
++++ COLUMNS_STATUS=63
++++ MESSAGE_INFO=':: %-77s\n'
++++ MESSAGE_ERROR='!! %-77s\n'
++++ MESSAGE_WARN='-- %-77s\n'
++++ MESSAGE_STATUS='=> %-63s [%5s]\e[6D'
++ bake -f test/bake_test.sh test:hello
++ has_task_file
+++ test -f Bakefile
++ return
++ source Bakefile
+++ source version.bk
++++ VERSION_FILE=VERSION
++++ desc version 'Load the current version for dump. The version attributes are:' '
    * tag
    * date
    * milestone
    * timestamp'
++++ declare name=version
++++ shift
++++ declare 'desc=Load the current version for dump. The version attributes are:
    * tag
    * date
    * milestone
    * timestamp'
++++ declare new=0
++++ task_names[new]=version
++++ task_descriptions[new]='Load the current version for dump. The version attributes are:
    * tag
    * date
    * milestone
    * timestamp'
++++ desc version:major 'Dump major version'
++++ declare name=version:major
++++ shift
++++ declare 'desc=Dump major version'
++++ declare new=1
++++ task_names[new]=version:major
++++ task_descriptions[new]='Dump major version'
++++ desc version:minor 'Dump minor version'
++++ declare name=version:minor
++++ shift
++++ declare 'desc=Dump minor version'
++++ declare new=2
++++ task_names[new]=version:minor
++++ task_descriptions[new]='Dump minor version'
++++ desc version:patch 'Dump patch version'
++++ declare name=version:patch
++++ shift
++++ declare 'desc=Dump patch version'
++++ declare new=3
++++ task_names[new]=version:patch
++++ task_descriptions[new]='Dump patch version'
++++ desc version:build 'Dump build version'
++++ declare name=version:build
++++ shift
++++ declare 'desc=Dump build version'
++++ declare new=4
++++ task_names[new]=version:build
++++ task_descriptions[new]='Dump build version'
+++ load VERSION
++++ readfile VERSION
++++ test -r VERSION
++++ echo '# version attributes
VERSION=(
  # Tag
  0.3.0
  # Release date
  2011-02-26
  # Milestone
  '\''Beta version'\''
  # Timestamps
  2009-12-09T11:07:59-04:00
)'
+++ eval '# version attributes
VERSION=(
  # Tag
  0.3.0
  # Release date
  2011-02-26
  # Milestone
  '\''Beta version'\''
  # Timestamps
  2009-12-09T11:07:59-04:00
)'
++++ VERSION=(0.3.0 2011-02-26 'Beta version' 2009-12-09T11:07:59-04:00)
+++ WORKDIR=bash-toolbox
+++ BUILDPATH=build
+++ PKGPATH=pkg
+++ PKGNAME=bash-toolbox-0.3.0
+++ PKGDIR=pkg/bash-toolbox-0.3.0
+++ GLOB=($(git ls-files))
++++ git ls-files
+++ STDOUT=/tmp/bash-toolbox.dev.log
+++ desc config 'Configure Bash-Toolbox for installation in /usr/local' '
    Set the variables:
      prefix=/usr/local
      bindir=/usr/local/bin
      libdir=/usr/local/lib/bash-toolbox
      libexecdir=/usr/local/libexec/bash-toolbox
      localstatedir=/usr/local/var
      sysconfdir=/usr/local/etc
      datarootdir=/usr/local/share
      datadir=/usr/local/share/bash-toolbox
      mandir=/usr/local/share/man
      docdir=/usr/local/share/doc/bash-toolbox
'
+++ declare name=config
+++ shift
+++ declare 'desc=Configure Bash-Toolbox for installation in /usr/local
    Set the variables:
      prefix=/usr/local
      bindir=/usr/local/bin
      libdir=/usr/local/lib/bash-toolbox
      libexecdir=/usr/local/libexec/bash-toolbox
      localstatedir=/usr/local/var
      sysconfdir=/usr/local/etc
      datarootdir=/usr/local/share
      datadir=/usr/local/share/bash-toolbox
      mandir=/usr/local/share/man
      docdir=/usr/local/share/doc/bash-toolbox
'
+++ declare new=5
+++ task_names[new]=config
+++ task_descriptions[new]='Configure Bash-Toolbox for installation in /usr/local
    Set the variables:
      prefix=/usr/local
      bindir=/usr/local/bin
      libdir=/usr/local/lib/bash-toolbox
      libexecdir=/usr/local/libexec/bash-toolbox
      localstatedir=/usr/local/var
      sysconfdir=/usr/local/etc
      datarootdir=/usr/local/share
      datadir=/usr/local/share/bash-toolbox
      mandir=/usr/local/share/man
      docdir=/usr/local/share/doc/bash-toolbox
'
+++ desc build 'Build directories and source files'
+++ declare name=build
+++ shift
+++ declare 'desc=Build directories and source files'
+++ declare new=6
+++ task_names[new]=build
+++ task_descriptions[new]='Build directories and source files'
+++ desc package 'Create package files bash-toolbox-0.3.0.tar.gz'
+++ declare name=package
+++ shift
+++ declare 'desc=Create package files bash-toolbox-0.3.0.tar.gz'
+++ declare new=7
+++ task_names[new]=package
+++ task_descriptions[new]='Create package files bash-toolbox-0.3.0.tar.gz'
+++ desc install 'Install Bash-Toolbox in prefix=/usr/local'
+++ declare name=install
+++ shift
+++ declare 'desc=Install Bash-Toolbox in prefix=/usr/local'
+++ declare new=8
+++ task_names[new]=install
+++ task_descriptions[new]='Install Bash-Toolbox in prefix=/usr/local'
+++ desc uninstall 'Uninstall Bash-Toolbox'
+++ declare name=uninstall
+++ shift
+++ declare 'desc=Uninstall Bash-Toolbox'
+++ declare new=9
+++ task_names[new]=uninstall
+++ task_descriptions[new]='Uninstall Bash-Toolbox'
+++ desc reinstall 'Reinstall Bash-Toolbox'
+++ declare name=reinstall
+++ shift
+++ declare 'desc=Reinstall Bash-Toolbox'
+++ declare new=10
+++ task_names[new]=reinstall
+++ task_descriptions[new]='Reinstall Bash-Toolbox'
+++ default config
+++ : config
+++ defined config
+++ for i in '${!task_names[@]}'
+++ test version == config
+++ for i in '${!task_names[@]}'
+++ test version:major == config
+++ for i in '${!task_names[@]}'
+++ test version:minor == config
+++ for i in '${!task_names[@]}'
+++ test version:patch == config
+++ for i in '${!task_names[@]}'
+++ test version:build == config
+++ for i in '${!task_names[@]}'
+++ test config == config
+++ return 0
+++ task_default=config
+++ return 0
++ getopts :f:lnhvd option
++ case ${option} in
++ task_file=test/bake_test.sh
++ source test/bake_test.sh
+++ desc test:hello 'Test '\''task'\'' alias and show '\''Hello world'\'''
+++ declare name=test:hello
+++ shift
+++ declare 'desc=Test '\''task'\'' alias and show '\''Hello world'\'''
+++ declare new=11
+++ task_names[new]=test:hello
+++ task_descriptions[new]='Test '\''task'\'' alias and show '\''Hello world'\'''
+++ desc test:status 'Test task and status functions'
+++ declare name=test:status
+++ shift
+++ declare 'desc=Test task and status functions'
+++ declare new=12
+++ task_names[new]=test:status
+++ task_descriptions[new]='Test task and status functions'
+++ desc test:check 'Should run other task by result'
+++ declare name=test:check
+++ shift
+++ declare 'desc=Should run other task by result'
+++ declare new=13
+++ task_names[new]=test:check
+++ task_descriptions[new]='Should run other task by result'
+++ desc test:all 'Run all tests'
+++ declare name=test:all
+++ shift
+++ declare 'desc=Run all tests'
+++ declare new=14
+++ task_names[new]=test:all
+++ task_descriptions[new]='Run all tests'
+++ default test:all
+++ : test:all
+++ defined test:all
+++ for i in '${!task_names[@]}'
+++ test version == test:all
+++ for i in '${!task_names[@]}'
+++ test version:major == test:all
+++ for i in '${!task_names[@]}'
+++ test version:minor == test:all
+++ for i in '${!task_names[@]}'
+++ test version:patch == test:all
+++ for i in '${!task_names[@]}'
+++ test version:build == test:all
+++ for i in '${!task_names[@]}'
+++ test config == test:all
+++ for i in '${!task_names[@]}'
+++ test build == test:all
+++ for i in '${!task_names[@]}'
+++ test package == test:all
+++ for i in '${!task_names[@]}'
+++ test install == test:all
+++ for i in '${!task_names[@]}'
+++ test uninstall == test:all
+++ for i in '${!task_names[@]}'
+++ test reinstall == test:all
+++ for i in '${!task_names[@]}'
+++ test test:hello == test:all
+++ for i in '${!task_names[@]}'
+++ test test:status == test:all
+++ for i in '${!task_names[@]}'
+++ test test:check == test:all
+++ for i in '${!task_names[@]}'
+++ test test:all == test:all
+++ return 0
+++ task_default=test:all
+++ return 0
++ getopts :f:lnhvd option
++ shift 2
++ tasknames=("${@}")
++ declare -a tasknames
++ test test:hello
++ invoke_all test:hello
++ for task in '${@}'
++ defined test:hello
++ for i in '${!task_names[@]}'
++ test version == test:hello
++ for i in '${!task_names[@]}'
++ test version:major == test:hello
++ for i in '${!task_names[@]}'
++ test version:minor == test:hello
++ for i in '${!task_names[@]}'
++ test version:patch == test:hello
++ for i in '${!task_names[@]}'
++ test version:build == test:hello
++ for i in '${!task_names[@]}'
++ test config == test:hello
++ for i in '${!task_names[@]}'
++ test build == test:hello
++ for i in '${!task_names[@]}'
++ test package == test:hello
++ for i in '${!task_names[@]}'
++ test install == test:hello
++ for i in '${!task_names[@]}'
++ test uninstall == test:hello
++ for i in '${!task_names[@]}'
++ test reinstall == test:hello
++ for i in '${!task_names[@]}'
++ test test:hello == test:hello
++ return 0
++ invoke test:hello
++ : test:hello
++ declare task=test:hello
++ declare namespace=test
++ test test '!=' test:hello
++ defined test
++ for i in '${!task_names[@]}'
++ test version == test
++ for i in '${!task_names[@]}'
++ test version:major == test
++ for i in '${!task_names[@]}'
++ test version:minor == test
++ for i in '${!task_names[@]}'
++ test version:patch == test
++ for i in '${!task_names[@]}'
++ test version:build == test
++ for i in '${!task_names[@]}'
++ test config == test
++ for i in '${!task_names[@]}'
++ test build == test
++ for i in '${!task_names[@]}'
++ test package == test
++ for i in '${!task_names[@]}'
++ test install == test
++ for i in '${!task_names[@]}'
++ test uninstall == test
++ for i in '${!task_names[@]}'
++ test reinstall == test
++ for i in '${!task_names[@]}'
++ test test:hello == test
++ for i in '${!task_names[@]}'
++ test test:status == test
++ for i in '${!task_names[@]}'
++ test test:check == test
++ for i in '${!task_names[@]}'
++ test test:all == test
++ return 1
++ test:hello
++ echo 'Hello world!!!'
Hello world!!!
++ return 0
++ return 0
++ exit 0
